package com.basics.post.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basics.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 帖子附件
 * </p>
 *
 * @author WangWei
 * @since 2025-04-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cy_channel_post_file")
@ApiModel(value="CyChannelPostFile对象", description="帖子附件")
public class CyChannelPostFile extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "附件ID")
    private String id;

    @ApiModelProperty(value = "帖子ID")
    private Long postId;

    @ApiModelProperty(value = "文件URL")
    private String fileUrl;

    @ApiModelProperty(value = "文件类型(1,图片,2视频,...)")
    private Integer fileType;

    @ApiModelProperty(value = "顺序")
    private Integer orderBy;

    @ApiModelProperty(value = "视频封面图")
    private String coverImg;

    @ApiModelProperty(value = "视频时长")
    private Long duration;

    @ApiModelProperty(value = "封面宽高(w,h)")
    private String coverSize;
}
